<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>简单计数器</title>
</head>
<body>
    <h1>计数器</h1>
    <p>当前值: <span id="counter">0</span></p>
    <button onclick="increment()">增加</button>
    <button onclick="decrement()">减少</button>

    <script src="script.js"></script>
</body>
</html>